<?php
ALFileLoad::lib(ALForms);
ALFileLoad::lib(ALFormFields);
class LoginForm extends ALForms
{
	public function __construct($data=NO)
	{
		
		$this->username = EmailField(array(
				"name" 		 => "username",
				"label"		 => "Username",
				"attributes" => array(
					"class"	   => "testclass",
					"readonly" => "readonly"
				)
			));

		$this->password = PasswordField(array(
				"name" 	    => "password",
				"label"	    => "Password",
				"validator" => "minlen, maxlen",
				"minlen"    => 8,
				"maxlen"    => 20
			));

		$this->select = SelectField(array(
				"name"    => "select",
				"label"   => "Select",
				"choices" => array(
					"Choice #1" => "choice1",
					"Choice #2" => "choice2",
					"Choice #3" => "choice3",
					"Choice #4" => "choice4",
					"Choice #5" => "choice5",
				),
				"attributes" => array(
				    "class" => "testclass"
				)
			));

		parent::__construct($data);

	}
}
